#define BOOST_TEST_MODULE SharedPtrTestModule
#include <boost/test/included/unit_test.hpp>

BOOST_AUTO_TEST_CASE(ScopePtrTest) {
    boost::scoped_ptr<int> ptr(new int(42));

    BOOST_CHECK(ptr);
    BOOST_CHECK_EQUAL(*ptr, 42);

    auto *pValue = ptr.get();
    BOOST_CHECK(pValue);
    BOOST_CHECK_EQUAL(*pValue, 42);

    ptr.reset();
    BOOST_CHECK(!ptr);
}
